Skip to content

feat(web): clicking the left bar icon of the page you're on hides or shows its list - #597

Merged
badcuban merged 1 commit into
mainfrom
feat/toggle-active-sidebar
Oct 23, 2026
Merged

badcuban merged 1 commit into
mainfrom
feat/toggle-active-sidebar

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

A second click on the current page's left bar icon did little. Threads could show its list but never hide it, and the other icons did nothing or jumped back to the top of their page (Settings to its first section, Fleet to the overview, General Chats out of the open chat).

Now, on a page with a list (Threads, General Chats, Fleet, Scheduled, Settings), that click works like the title row's sidebar toggle, the way VS Code's activity bar does.

  • Double-clicks: the second click of a double-click that opened the page is ignored, so arriving with a double-click never hides the list. ChromeIconButton now passes the click event so the rail can read event.detail.
  • Accessibility: the selected icon carries aria-expanded for its list.
  • Unchanged: Pull Requests and Usage (no list), phones (no rail), and the Fleet/Scheduled keyboard shortcuts, which still just go to their page. Show/hide stays one shared setting across pages, as with the title row toggle.

Tests: a new browser test in ChatView.shell.browser.tsx hides and shows the list from the Threads icon, double-clicks into General Chats and checks the list stays, then single-clicks to hide it. ChatView.shell, ChatView.sidebar and ChatView.fleet browser files pass (62 tests); vp fmt, vp lint, vp run typecheck pass.

…shows its list

A second click on the current page's left bar icon did little: Threads could
show its list but never hide it, and the other icons did nothing or jumped
back to the top of their page.

Now, on a page with a list (Threads, General Chats, Fleet, Scheduled,
Settings), that click works like the title row's sidebar toggle. The second
click of a double-click that opened the page is ignored, so arriving with a
double-click never hides the list. The selected icon reports the list's state
with aria-expanded. Pull Requests and Usage have no list and keep their
behavior; phones keep theirs.
@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Oct 23, 2026 2:23pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Oct 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 23, 2026
@badcuban
badcuban added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit 4d0a791 Oct 23, 2026
20 checks passed
@badcuban
badcuban deleted the feat/toggle-active-sidebar branch October 23, 2026 14:40

This branch was previously deployed

1 inactive deployment
Preview — fc327a98 Deployed Oct 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant